<template>
  <section class="QuickFieldPanel__container">
    <div class="title">
      {{ title }}<span v-if="required" class="required">*</span>
    </div>
    <div class="content">
      <slot></slot>
    </div>
  </section>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
    },
    required: {
      type: Boolean,
      default: false,
    },
    direction: {
      type: String,
      default: "vertical",
    },
  },
};
</script>

<style lang="scss" scoped>
.QuickFieldPanel__container {
  display: flex;
  flex-direction: column;

  .title {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #999;

    .required {
      color: #f56c6c;
      margin-left: 5px;
    }
  }
}
</style>
